

import java.io.*;
public class ReadFile{
	public static void main(String [] args){
		try{
		File x1 = new File("MyText.txt");
		FileReader x2 = new FileReader(x1);
		StreamReader x4 = new StreamReader(x2);
		String x3 = null;
		
		while(( x3 = x4.readLine ()) != null){
			System.out.println(x3);
		}
		x4.close();
		
		}catch(Exception e){
		e.printStackTrace();
		}
	}

}